Top Inners Fields Constructors Methods
io.netty.handler.codec.spdy

pack-priv final Class SpdySession

extends Object
Class Inheritance
Imports
io.netty.channel.ChannelPromise, io.netty.util.internal.PlatformDependent, java.util.Comparator, .Map, .Queue, .TreeMap, java.util.concurrent.ConcurrentLinkedQueue, java.util.concurrent.atomic.AtomicInteger

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
private class
private static class

Field Summary

Modifier and TypeField and Description
private final AtomicInteger
private final AtomicInteger
private final Map<Integer, SpdySession.StreamState>
private final AtomicInteger
private final AtomicInteger
private final SpdySession.StreamComparator

Constructor Summary

AccessConstructor and Description
pack-priv
SpdySession(int sendWindowSize, int receiveWindowSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
acceptStream(int streamId, byte priority, boolean remoteSideClosed, boolean localSideClosed, int sendWindowSize, int receiveWindowSize, boolean remote)

pack-priv Map<Integer, SpdySession.StreamState>
pack-priv void
closeLocalSide(int streamId, boolean remote)

pack-priv void
closeRemoteSide(int streamId, boolean remote)

pack-priv SpdySession.PendingWrite
getPendingWrite(int streamId)

pack-priv int
pack-priv int
getSendWindowSize(int streamId)

pack-priv boolean
hasReceivedReply(int streamId)

pack-priv boolean
isActiveStream(int streamId)

pack-priv boolean
isLocalSideClosed(int streamId)

pack-priv boolean
isRemoteSideClosed(int streamId)

pack-priv boolean
pack-priv int
numActiveStreams(boolean remote)

pack-priv boolean
putPendingWrite(int streamId, SpdySession.PendingWrite pendingWrite)

pack-priv void
receivedReply(int streamId)

private SpdySession.StreamState
removeActiveStream(int streamId, boolean remote)

pack-priv SpdySession.PendingWrite
removePendingWrite(int streamId)

pack-priv void
removeStream(int streamId, Throwable cause, boolean remote)

pack-priv void
updateAllReceiveWindowSizes(int deltaWindowSize)

pack-priv void
updateAllSendWindowSizes(int deltaWindowSize)

pack-priv int
updateReceiveWindowSize(int streamId, int deltaWindowSize)

pack-priv int
updateSendWindowSize(int streamId, int deltaWindowSize)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

activeLocalStreamsback to summary
private final AtomicInteger activeLocalStreams
activeRemoteStreamsback to summary
private final AtomicInteger activeRemoteStreams
activeStreamsback to summary
private final Map<Integer, SpdySession.StreamState> activeStreams
receiveWindowSizeback to summary
private final AtomicInteger receiveWindowSize
sendWindowSizeback to summary
private final AtomicInteger sendWindowSize
streamComparatorback to summary
private final SpdySession.StreamComparator streamComparator

Constructor Detail

SpdySessionback to summary
pack-priv SpdySession(int sendWindowSize, int receiveWindowSize)

Method Detail

acceptStreamback to summary
pack-priv void acceptStream(int streamId, byte priority, boolean remoteSideClosed, boolean localSideClosed, int sendWindowSize, int receiveWindowSize, boolean remote)
activeStreamsback to summary
pack-priv Map<Integer, SpdySession.StreamState> activeStreams()
closeLocalSideback to summary
pack-priv void closeLocalSide(int streamId, boolean remote)
closeRemoteSideback to summary
pack-priv void closeRemoteSide(int streamId, boolean remote)
getPendingWriteback to summary
pack-priv SpdySession.PendingWrite getPendingWrite(int streamId)
getReceiveWindowSizeLowerBoundback to summary
pack-priv int getReceiveWindowSizeLowerBound(int streamId)
getSendWindowSizeback to summary
pack-priv int getSendWindowSize(int streamId)
hasReceivedReplyback to summary
pack-priv boolean hasReceivedReply(int streamId)
isActiveStreamback to summary
pack-priv boolean isActiveStream(int streamId)
isLocalSideClosedback to summary
pack-priv boolean isLocalSideClosed(int streamId)
isRemoteSideClosedback to summary
pack-priv boolean isRemoteSideClosed(int streamId)
noActiveStreamsback to summary
pack-priv boolean noActiveStreams()
numActiveStreamsback to summary
pack-priv int numActiveStreams(boolean remote)
putPendingWriteback to summary
pack-priv boolean putPendingWrite(int streamId, SpdySession.PendingWrite pendingWrite)
receivedReplyback to summary
pack-priv void receivedReply(int streamId)
removeActiveStreamback to summary
private SpdySession.StreamState removeActiveStream(int streamId, boolean remote)
removePendingWriteback to summary
pack-priv SpdySession.PendingWrite removePendingWrite(int streamId)
removeStreamback to summary
pack-priv void removeStream(int streamId, Throwable cause, boolean remote)
updateAllReceiveWindowSizesback to summary
pack-priv void updateAllReceiveWindowSizes(int deltaWindowSize)
updateAllSendWindowSizesback to summary
pack-priv void updateAllSendWindowSizes(int deltaWindowSize)
updateReceiveWindowSizeback to summary
pack-priv int updateReceiveWindowSize(int streamId, int deltaWindowSize)
updateSendWindowSizeback to summary
pack-priv int updateSendWindowSize(int streamId, int deltaWindowSize)
io.netty.handler.codec.spdy back to summary

public final Class SpdySession.PendingWrite

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final ChannelPromise
pack-priv final SpdyDataFrame

Constructor Summary

AccessConstructor and Description
pack-priv
PendingWrite(SpdyDataFrame spdyDataFrame, ChannelPromise promise)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
fail(Throwable cause)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

promiseback to summary
pack-priv final ChannelPromise promise
spdyDataFrameback to summary
pack-priv final SpdyDataFrame spdyDataFrame

Constructor Detail

PendingWriteback to summary
pack-priv PendingWrite(SpdyDataFrame spdyDataFrame, ChannelPromise promise)

Method Detail

failback to summary
pack-priv void fail(Throwable cause)
io.netty.handler.codec.spdy back to summary

private final Class SpdySession.StreamComparator

extends Object
implements Comparator<Integer>
Class Inheritance
All Implemented Interfaces
java.util.Comparator

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
compare(Integer
the first object to be compared.
id1
,
Integer
the second object to be compared.
id2
)

Implements java.util.Comparator.compare.

Compares its two arguments for order.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StreamComparatorback to summary
pack-priv StreamComparator()

Method Detail

compareback to summary
public int compare(Integer id1, Integer id2)

Implements java.util.Comparator.compare.

Doc from java.util.Comparator.compare.

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

The implementor must ensure that signum(compare(x, y)) == -signum(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

The implementor must also ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Finally, the implementor must ensure that compare(x, y)==0 implies that signum(compare(x, z))==signum(compare(y, z)) for all z.

Parameters
id1:Integer

the first object to be compared.

id2:Integer

the second object to be compared.

Returns:int

a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

Annotations
@Override
io.netty.handler.codec.spdy back to summary

private final Class SpdySession.StreamState

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private final Queue<SpdySession.PendingWrite>
private final byte
private boolean
private final AtomicInteger
private int
private boolean
private final AtomicInteger

Constructor Summary

AccessConstructor and Description
pack-priv
StreamState(byte priority, boolean remoteSideClosed, boolean localSideClosed, int sendWindowSize, int receiveWindowSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv void
pack-priv SpdySession.PendingWrite
pack-priv byte
pack-priv int
pack-priv int
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv void
pack-priv SpdySession.PendingWrite
pack-priv void
setReceiveWindowSizeLowerBound(int receiveWindowSizeLowerBound)

pack-priv int
updateReceiveWindowSize(int deltaWindowSize)

pack-priv int
updateSendWindowSize(int deltaWindowSize)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

localSideClosedback to summary
private boolean localSideClosed
pendingWriteQueueback to summary
private final Queue<SpdySession.PendingWrite> pendingWriteQueue
priorityback to summary
private final byte priority
receivedReplyback to summary
private boolean receivedReply
receiveWindowSizeback to summary
private final AtomicInteger receiveWindowSize
receiveWindowSizeLowerBoundback to summary
private int receiveWindowSizeLowerBound
remoteSideClosedback to summary
private boolean remoteSideClosed
sendWindowSizeback to summary
private final AtomicInteger sendWindowSize

Constructor Detail

StreamStateback to summary
pack-priv StreamState(byte priority, boolean remoteSideClosed, boolean localSideClosed, int sendWindowSize, int receiveWindowSize)

Method Detail

clearPendingWritesback to summary
pack-priv void clearPendingWrites(Throwable cause)
closeLocalSideback to summary
pack-priv void closeLocalSide()
closeRemoteSideback to summary
pack-priv void closeRemoteSide()
getPendingWriteback to summary
pack-priv SpdySession.PendingWrite getPendingWrite()
getPriorityback to summary
pack-priv byte getPriority()
getReceiveWindowSizeLowerBoundback to summary
pack-priv int getReceiveWindowSizeLowerBound()
getSendWindowSizeback to summary
pack-priv int getSendWindowSize()
hasReceivedReplyback to summary
pack-priv boolean hasReceivedReply()
isLocalSideClosedback to summary
pack-priv boolean isLocalSideClosed()
isRemoteSideClosedback to summary
pack-priv boolean isRemoteSideClosed()
putPendingWriteback to summary
pack-priv boolean putPendingWrite(SpdySession.PendingWrite msg)
receivedReplyback to summary
pack-priv void receivedReply()
removePendingWriteback to summary
pack-priv SpdySession.PendingWrite removePendingWrite()
setReceiveWindowSizeLowerBoundback to summary
pack-priv void setReceiveWindowSizeLowerBound(int receiveWindowSizeLowerBound)
updateReceiveWindowSizeback to summary
pack-priv int updateReceiveWindowSize(int deltaWindowSize)
updateSendWindowSizeback to summary
pack-priv int updateSendWindowSize(int deltaWindowSize)