public abstract class AsynchRequest extends 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,
String name)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compare objects for equality
|
int |
getId()
Get the request id
|
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(String name)
Set the request name
|
String |
toString()
Return the request as a string
|
protected AsynchRequest(int mid)
mid
- intprotected AsynchRequest(int mid, String name)
mid
- intname
- Stringpublic final int getId()
public final 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(String name)
name
- Stringpublic String toString()
public boolean equals(Object obj)
Copyright © 2005–2018 Alfresco Software. All rights reserved.