Class AbstractLocalGroup<A>
- java.lang.Object
-
- org.wildfly.clustering.server.infinispan.group.AbstractLocalGroup<A>
-
- All Implemented Interfaces:
AutoCloseable,Group,Registrar<GroupListener>,Registration,Group<A>,NodeFactory<A>
- Direct Known Subclasses:
LocalCacheGroup,LocalGroup
public abstract class AbstractLocalGroup<A> extends Object implements Group<A>, Registration
Abstract non-clustered group implementation. RegisteredGroupListenerare never invoked, as membership of a local group is fixed.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalGroup(String nodeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()NodecreateNode(A address)NodegetLocalMember()MembershipgetMembership()StringgetName()booleanisSingleton()Registrationregister(GroupListener listener)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.clustering.server.NodeFactory
getAddress
-
-
-
-
Constructor Detail
-
AbstractLocalGroup
public AbstractLocalGroup(String nodeName)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRegistration
-
register
public Registration register(GroupListener listener)
-
getLocalMember
public Node getLocalMember()
- Specified by:
getLocalMemberin interfaceGroup
-
getMembership
public Membership getMembership()
- Specified by:
getMembershipin interfaceGroup
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceGroup
-
createNode
public Node createNode(A address)
- Specified by:
createNodein interfaceNodeFactory<A>
-
-