public class Ticket extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
protected void |
checkExpired() |
void |
expired() |
ResultCallback |
getCallback() |
String |
getId() |
boolean |
isDone() |
void |
notifyResponse(Message response) |
Message |
request() |
Message |
response() |
void |
setCallback(ResultCallback callback) |
static void |
setTicketListener(TicketListener listener) |
static String |
uuidTicket() |
public Ticket(Message request, long timeout)
public static String uuidTicket()
public boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void await()
throws InterruptedException
InterruptedExceptionpublic void expired()
public boolean isDone()
public void notifyResponse(Message response)
public ResultCallback getCallback()
public void setCallback(ResultCallback callback)
public String getId()
public Message request()
public Message response()
protected void checkExpired()
public static void setTicketListener(TicketListener listener)
Copyright © 2015. All rights reserved.