Package org.jgroups.protocols
Class Executing.RequestWithThread
- java.lang.Object
-
- org.jgroups.protocols.Executing.Request
-
- org.jgroups.protocols.Executing.RequestWithThread
-
- All Implemented Interfaces:
Constructable<Executing.Request>
,Streamable
- Enclosing class:
- Executing
protected static class Executing.RequestWithThread extends Executing.Request
-
-
Field Summary
Fields Modifier and Type Field Description protected long
threadId
-
Fields inherited from class org.jgroups.protocols.Executing.Request
object, request, type
-
-
Constructor Summary
Constructors Constructor Description RequestWithThread()
RequestWithThread(Executing.Type type, java.lang.Object object, long request, long threadId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<? extends Executing.Request>
create()
Creates an instance of the class implementing this interfacevoid
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedjava.lang.String
toString()
void
writeTo(java.io.DataOutput out)
Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Constructor Detail
-
RequestWithThread
public RequestWithThread()
-
RequestWithThread
public RequestWithThread(Executing.Type type, java.lang.Object object, long request, long threadId)
-
-
Method Detail
-
create
public java.util.function.Supplier<? extends Executing.Request> create()
Description copied from interface:Constructable
Creates an instance of the class implementing this interface- Specified by:
create
in interfaceConstructable<Executing.Request>
- Overrides:
create
in classExecuting.Request
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from interface:Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classExecuting.Request
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeTo
public void writeTo(java.io.DataOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeTo
in interfaceStreamable
- Overrides:
writeTo
in classExecuting.Request
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classExecuting.Request
-
-