Module org.bzdev.devqsim
Package org.bzdev.devqsim
Interface QueueCallable<Server extends QueueServer>
public interface QueueCallable<Server extends QueueServer>
Interface for executing some code on a server queue.
When processed, the
interactWith
method is run first,
with a queue server as its argument. After the queue server is
released, the call
method is executed to allow for any
necessary processing after the server is done.-
Method Summary
Modifier and TypeMethodDescriptionvoid
call()
The method to call.void
interactWith
(Server server) Interact with a queue server.
-
Method Details
-
interactWith
Interact with a queue server. This method is called when this object is at the head of a server queue and ready to be processed by a queue server.- Parameters:
server
- the server handling this QueueCallable
-
call
void call()The method to call. Users will implement this method so that blocks of code can be posted to the event queue.
-