public abstract class SecretaryMessageQueue<R> extends java.lang.Object implements SecretaryMessageExecutor<R>
Constructor and Description |
---|
SecretaryMessageQueue() |
Modifier and Type | Method and Description |
---|---|
<T,E extends java.lang.Throwable> |
executeSecretarially(SecretaryMessage<R,T,E> message,
java.lang.Object... args) |
protected abstract R |
getExecutive() |
boolean |
isDirectMeeting() |
static void |
main(java.lang.String[] args) |
void |
setDirectMeeting(boolean directMeeting) |
public void setDirectMeeting(boolean directMeeting)
public boolean isDirectMeeting()
protected abstract R getExecutive()
public <T,E extends java.lang.Throwable> T executeSecretarially(SecretaryMessage<R,T,E> message, java.lang.Object... args) throws E extends java.lang.Throwable
executeSecretarially
in interface SecretaryMessageExecutor<R>
E extends java.lang.Throwable
public static void main(java.lang.String[] args) throws java.lang.IllegalArgumentException, java.lang.InterruptedException
java.lang.IllegalArgumentException
java.lang.InterruptedException