<li><ahref="../../../../com/comphenix/protocol/async/AsyncListenerHandler.html"title="class in com.comphenix.protocol.async"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/async/AsyncRunnable.html"title="interface in com.comphenix.protocol.async"><spanclass="strong">Next Class</span></a></li>
<dd>java.io.Serializable, java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a>></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">AsyncMarker</span>
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a>></pre>
<divclass="block">Contains information about the packet that is being processed by asynchronous listeners.
<p>
Asynchronous listeners can use this to set packet timeout or transmission order.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>int</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html#compareTo(com.comphenix.protocol.async.AsyncMarker)">compareTo</a></strong>(<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> o)</code> </td>
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/async/AsyncListenerHandler.html"title="class in com.comphenix.protocol.async">AsyncListenerHandler</a></code></td>
<tdclass="colFirst"><code><ahref="../../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a></code></td>
<divclass="block">Determine if the asynchronous handling should be cancelled.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html#isMinecraftAsync(com.comphenix.protocol.events.PacketEvent)">isMinecraftAsync</a></strong>(<ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> event)</code>
<divclass="block">Determine if Minecraft allows asynchronous processing of this packet.</div>
<divclass="block">Sets the desired sending order after processing has completed.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html#setPacketStream(com.comphenix.protocol.PacketStream)">setPacketStream</a></strong>(<ahref="../../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a> packetStream)</code>
<divclass="block">Sets the output packet stream responsible for transmitting this packet.</div>
<divclass="block">Default number of milliseconds until a packet will rejected.</div>
<dl><dt><spanclass="strong">See Also:</span></dt><dd><ahref="../../../../constant-values.html#com.comphenix.protocol.async.AsyncMarker.DEFAULT_TIMEOUT_DELTA">Constant Field Values</a></dd></dl>
<divclass="block">Default number of packets to skip.</div>
<dl><dt><spanclass="strong">See Also:</span></dt><dd><ahref="../../../../constant-values.html#com.comphenix.protocol.async.AsyncMarker.DEFAULT_SENDING_DELTA">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method_detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getInitialTime()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getInitialTime</h4>
<pre>public long getInitialTime()</pre>
<divclass="block">Retrieve the time the packet was initially queued for asynchronous processing.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The initial time in number of milliseconds since 01.01.1970 00:00.</dd></dl>
</li>
</ul>
<aname="getTimeout()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getTimeout</h4>
<pre>public long getTimeout()</pre>
<divclass="block">Retrieve the time the packet will be forcefully rejected.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The time to reject the packet, in milliseconds since 01.01.1970 00:00.</dd></dl>
<divclass="block">Set the time the packet will be forcefully rejected.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>timeout</code> - - time to reject the packet, in milliseconds since 01.01.1970 00:00.</dd></dl>
<divclass="block">Sets the desired sending order after processing has completed.
<p>
Higher sending order means lower priority.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>newSendingIndex</code> - - new packet send index.</dd></dl>
</li>
</ul>
<aname="getPacketStream()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getPacketStream</h4>
<pre>public <ahref="../../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a> getPacketStream()</pre>
<divclass="block">Retrieve the packet stream responsible for transmitting this packet.</div>
<pre>public void setPacketStream(<ahref="../../../../com/comphenix/protocol/PacketStream.html"title="interface in com.comphenix.protocol">PacketStream</a> packetStream)</pre>
<divclass="block">Sets the output packet stream responsible for transmitting this packet.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>packetStream</code> - - new output packet stream.</dd></dl>
</li>
</ul>
<aname="isProcessed()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>isProcessed</h4>
<pre>public boolean isProcessed()</pre>
<divclass="block">Retrieve whether or not this packet has been processed by the async listeners.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>TRUE if it has been processed, FALSE otherwise.</dd></dl>
<divclass="block">Set whether or not the asynchronous handling should be cancelled.
<p>
This is only relevant during the synchronous processing. Asynchronous
listeners should use the normal cancel-field to cancel a PacketEvent.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>asyncCancelled</code> - - TRUE to cancel it, FALSE otherwise.</dd></dl>
</li>
</ul>
<aname="getListenerHandler()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getListenerHandler</h4>
<pre>public <ahref="../../../../com/comphenix/protocol/async/AsyncListenerHandler.html"title="class in com.comphenix.protocol.async">AsyncListenerHandler</a> getListenerHandler()</pre>
<divclass="block">Retrieve the current asynchronous listener handler.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>Asychronous listener handler, or NULL if this packet is not asynchronous.</dd></dl>
</li>
</ul>
<aname="getWorkerID()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getWorkerID</h4>
<pre>public int getWorkerID()</pre>
<divclass="block">Retrieve the current worker ID.</div>
<pre>public boolean isMinecraftAsync(<ahref="../../../../com/comphenix/protocol/events/PacketEvent.html"title="class in com.comphenix.protocol.events">PacketEvent</a> event)
throws <ahref="../../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></pre>
<divclass="block">Determine if Minecraft allows asynchronous processing of this packet.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>TRUE if it does, FALSE otherwise.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../../com/comphenix/protocol/reflect/FieldAccessException.html"title="class in com.comphenix.protocol.reflect">FieldAccessException</a></code></dd></dl>
<pre>public int compareTo(<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a> o)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>compareTo</code> in interface <code>java.lang.Comparable<<ahref="../../../../com/comphenix/protocol/async/AsyncMarker.html"title="class in com.comphenix.protocol.async">AsyncMarker</a>></code></dd>
<li><ahref="../../../../com/comphenix/protocol/async/AsyncListenerHandler.html"title="class in com.comphenix.protocol.async"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../../com/comphenix/protocol/async/AsyncRunnable.html"title="interface in com.comphenix.protocol.async"><spanclass="strong">Next Class</span></a></li>