Package org.jgroups.protocols
Class COUNTER.GetOrCreateRequest
java.lang.Object
org.jgroups.protocols.COUNTER.SimpleRequest
org.jgroups.protocols.COUNTER.GetOrCreateRequest
- All Implemented Interfaces:
COUNTER.Request,Streamable
- Enclosing class:
COUNTER
-
Field Summary
FieldsFields inherited from class org.jgroups.protocols.COUNTER.SimpleRequest
name, owner -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected(package private)GetOrCreateRequest(Owner owner, String name, long initial_value) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedvoidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.Methods inherited from class org.jgroups.protocols.COUNTER.SimpleRequest
getCounterName, toString
-
Field Details
-
initial_value
protected long initial_value
-
-
Constructor Details
-
GetOrCreateRequest
protected GetOrCreateRequest() -
GetOrCreateRequest
-
-
Method Details
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classCOUNTER.SimpleRequest- Throws:
IOExceptionClassNotFoundException
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Overrides:
writeToin classCOUNTER.SimpleRequest- Throws:
IOException
-
getRequestType
-
execute
-