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, hasResponse
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId, toString
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
hasResponse
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
protected AbstractAbandonableRequest(int id, MessageTypeEnum type)
id
- the sequential message identifiertype
- the request type enumpublic void abandon()
AbandonableRequest
abandon
in interface AbandonableRequest
public boolean isAbandoned()
AbandonableRequest
isAbandoned
in interface AbandonableRequest
public AbandonableRequest addAbandonListener(AbandonListener listener)
addAbandonListener
in interface AbandonableRequest
listener
- to be notified if this request gets abandoned.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.