public abstract class AsynchRequest
extends java.lang.Object
Abstract class used to track the details of an asynchronous SMB/CIFS request where the request is sent to the server but no reply is received until a particular event occurs on the server, such as a directory change notification.
| Modifier | Constructor and Description |
|---|---|
protected |
AsynchRequest(int mid)
Class constructor
|
protected |
AsynchRequest(int mid,
java.lang.String name)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compare objects for equality
|
int |
getId()
Get the request id
|
java.lang.String |
getName()
Return the request name
|
boolean |
hasAutoReset()
Check if the request should be automatically reset
|
boolean |
hasCompleted()
Check if the asynchronous request has completed
|
int |
hashCode()
Return a hashcode for the request
|
protected abstract void |
processResponse(Session sess,
SMBPacket pkt)
Process the asynchronous response packet for this request
|
protected abstract boolean |
resubmitRequest(Session sess,
SMBPacket pkt)
Resubmit the request to the server
|
void |
setAutoReset(boolean auto)
Enable/disable auto-reset of the request
|
protected void |
setCompleted(boolean sts)
Set the asynchronous request completion status
|
protected void |
setId(int id)
Set the request id
|
protected void |
setName(java.lang.String name)
Set the request name
|
java.lang.String |
toString()
Return the request as a string
|
protected AsynchRequest(int mid)
mid - intprotected AsynchRequest(int mid,
java.lang.String name)
mid - intname - Stringpublic final int getId()
public final java.lang.String getName()
public final boolean hasCompleted()
public final boolean hasAutoReset()
public final void setAutoReset(boolean auto)
auto - booleanprotected abstract void processResponse(Session sess, SMBPacket pkt)
sess - Sessionpkt - SMBPacketprotected abstract boolean resubmitRequest(Session sess, SMBPacket pkt)
sess - Sessionpkt - SMBPacketprotected final void setCompleted(boolean sts)
sts - booleanprotected final void setId(int id)
id - intprotected final void setName(java.lang.String name)
name - Stringpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.