|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalOperationService
This is the interface that needs to be implemented by actual InternalOperationService. Currently there is a single
InternalOperationService: BasicOperationService
, but in the future others can be added.
Method Summary | |
---|---|
void |
execute(Runnable task,
int partitionId)
Executes a Runnable on a thread that is responsible for a given partition. |
void |
executeOperation(Packet packet)
Executes an operation. |
boolean |
isCallTimedOut(Operation op)
|
void |
notifyBackupCall(long callId)
|
void |
onMemberLeft(MemberImpl member)
|
void |
reset()
Resets internal state of InternalOperationService. |
void |
shutdown()
Shuts down this InternalOperationService. |
Method Detail |
---|
void onMemberLeft(MemberImpl member)
boolean isCallTimedOut(Operation op)
void notifyBackupCall(long callId)
void execute(Runnable task, int partitionId)
ClientEngine
when it has received a Packet containing
a request that needs to be processed. The advantage of this method is that the request can immediately be handed over to
a thread that can take care of it; either execute it directly or send it to the remote machine.
task
- the task to executepartitionId
- the partition id. A partition of smaller than 0, means that the task is going to be executed in
the generic operation-threads and not on a partition specific operation-thread.void executeOperation(Packet packet)
packet
- the packet containing the serialized operation.void reset()
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |