W - concrete type of the WaitKeyR - concrete type of the resourcepublic abstract class ResourceRegistry<W extends WaitKey,R extends BlockingResource<W>> extends Object implements DataSerializable
| Modifier and Type | Field and Description | 
|---|---|
| protected Set<String> | destroyedNames | 
| protected CPGroupId | groupId | 
| protected Map<String,R> | resources | 
| protected ConcurrentMap<Tuple2<String,UUID>,Tuple2<Long,Long>> | waitTimeouts | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | ResourceRegistry() | 
| protected  | ResourceRegistry(CPGroupId groupId) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | addWaitKey(String name,
          W key,
          long timeoutMs) | 
| protected abstract ResourceRegistry<W,R> | cloneForSnapshot() | 
| protected abstract R | createNewResource(CPGroupId groupId,
                 String name) | 
| Collection<Long> | destroy() | 
| CPGroupId | getGroupId() | 
| Collection<Tuple2<Address,Long>> | getLiveOperations() | 
| protected R | getOrInitResource(String name) | 
| R | getResourceOrNull(String name) | 
| Map<Tuple2<String,UUID>,Tuple2<Long,Long>> | getWaitTimeouts() | 
| void | populate(LiveOperations liveOperations,
        long now) | 
| void | readData(ObjectDataInput in)Reads fields from the input stream | 
| protected void | removeWaitKey(String name,
             W key) | 
| String | toString() | 
| void | writeData(ObjectDataOutput out)Writes object fields to output stream | 
protected CPGroupId groupId
protected final Map<String,R extends BlockingResource<W>> resources
protected ResourceRegistry()
protected ResourceRegistry(CPGroupId groupId)
protected abstract ResourceRegistry<W,R> cloneForSnapshot()
public final CPGroupId getGroupId()
public final Collection<Long> destroy()
public void populate(LiveOperations liveOperations, long now)
public final Collection<Tuple2<Address,Long>> getLiveOperations()
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     input stream has been closed.Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.