public class AbstractAbandonableRequest extends AbstractRequest implements AbandonableRequest
controls| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAbandonableRequest(int id,
MessageTypeEnum type)
Subclasses must provide these parameters via a super constructor call.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abandon()
Abandons this request.
|
AbandonableRequest |
addAbandonListener(AbandonListener listener)
Adds listener to be notified if this request gets abandoned.
|
boolean |
isAbandoned()
Checks to see if this request has been abandoned.
|
equals, hashCode, hasResponseaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toStringclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waithasResponseaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdprotected AbstractAbandonableRequest(int id,
MessageTypeEnum type)
id - the sequential message identifiertype - the request type enumpublic void abandon()
AbandonableRequestabandon in interface AbandonableRequestpublic boolean isAbandoned()
AbandonableRequestisAbandoned in interface AbandonableRequestpublic AbandonableRequest addAbandonListener(AbandonListener listener)
addAbandonListener in interface AbandonableRequestlistener - to be notified if this request gets abandoned.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.