public class NioEndpoint.Sendfile extends Object implements Runnable
Sendfile
Created on Mar 7, 2012 at 4:04:59 PM| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
counter |
protected ConcurrentLinkedQueue<NioEndpoint.SendfileData> |
fileDatas |
protected ConcurrentLinkedQueue<NioEndpoint.SendfileData> |
recycledFileDatas |
protected int |
size |
| Constructor and Description |
|---|
Sendfile() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(NioEndpoint.SendfileData data)
Add the sendfile data to the sendfile poller.
|
protected void |
destroy()
Destroy the SendFile
|
int |
getSendfileCount() |
NioEndpoint.SendfileData |
getSendfileData()
Poll the head of the recycled object list if it is not empty, else
create a new one.
|
protected void |
init()
Initialize the
Sendfile |
protected NioEndpoint.SendfileData |
poll()
Retrieves and removes the head of this queue, or returns
null if this queue is empty.
|
void |
recycleSendfileData(NioEndpoint.SendfileData data) |
protected void |
remove(NioEndpoint.SendfileData data)
Remove socket from the poller.
|
void |
run() |
protected int size
protected ConcurrentLinkedQueue<NioEndpoint.SendfileData> fileDatas
protected ConcurrentLinkedQueue<NioEndpoint.SendfileData> recycledFileDatas
protected AtomicInteger counter
public int getSendfileCount()
protected void init()
Sendfileprotected void destroy()
public void recycleSendfileData(NioEndpoint.SendfileData data)
data - public NioEndpoint.SendfileData getSendfileData()
SendfileDatapublic boolean add(NioEndpoint.SendfileData data)
data - containing the reference to the data which should be sentprotected NioEndpoint.SendfileData poll()
protected void remove(NioEndpoint.SendfileData data)
data - the sendfile data which should be removedCopyright © 2016 JBoss by Red Hat. All rights reserved.