Class ReadWriteLockHolder.RemoveLocks
- java.lang.Object
-
- com.oracle.coherence.concurrent.locks.internal.ReadWriteLockHolder.RemoveLocks
-
- All Implemented Interfaces:
ExternalizableLite,PortableObject,InvocableMap.EntryProcessor<String,ReadWriteLockHolder,Void>,Serializable
- Enclosing class:
- ReadWriteLockHolder
public static class ReadWriteLockHolder.RemoveLocks extends Object implements InvocableMap.EntryProcessor<String,ReadWriteLockHolder,Void>, ExternalizableLite, PortableObject
An EntryProcessor that will remove locks for the provided member ID, or all the locks for the members that are not in the cluster any longer (if the specified member ID isnull).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected UIDm_memberIdThe member UID to remove all the locks for.
-
Constructor Summary
Constructors Constructor Description RemoveLocks()Default constructor (for deserialization).RemoveLocks(UID memberId)Create a RemoveLocks processor with the given member id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Voidprocess(InvocableMap.Entry<String,ReadWriteLockHolder> entry)voidreadExternal(PofReader in)voidreadExternal(DataInput in)voidwriteExternal(PofWriter out)voidwriteExternal(DataOutput out)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.tangosol.util.InvocableMap.EntryProcessor
processAll
-
-
-
-
Field Detail
-
m_memberId
protected UID m_memberId
The member UID to remove all the locks for.
-
-
Constructor Detail
-
RemoveLocks
public RemoveLocks()
Default constructor (for deserialization).
-
RemoveLocks
public RemoveLocks(UID memberId)
Create a RemoveLocks processor with the given member id.- Parameters:
memberId- remove all LockHolders that have this member id, or all the locks for the members that are not in the cluster any longer (if the specified member ID isnull).
-
-
Method Detail
-
process
public Void process(InvocableMap.Entry<String,ReadWriteLockHolder> entry)
- Specified by:
processin interfaceInvocableMap.EntryProcessor<String,ReadWriteLockHolder,Void>
-
readExternal
public void readExternal(DataInput in) throws IOException
- Specified by:
readExternalin interfaceExternalizableLite- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizableLite- Throws:
IOException
-
readExternal
public void readExternal(PofReader in) throws IOException
- Specified by:
readExternalin interfacePortableObject- Throws:
IOException
-
writeExternal
public void writeExternal(PofWriter out) throws IOException
- Specified by:
writeExternalin interfacePortableObject- Throws:
IOException
-
-