Class H2Streams
java.lang.Object
org.apache.hc.core5.http2.impl.nio.H2Streams
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StreamIdGeneratorprivate final AtomicIntegerprivate final AtomicIntegerprivate final AtomicIntegerprivate final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateActive(H2StreamChannel channel, H2StreamHandler streamHandler) createReserved(H2StreamChannel channel, H2StreamHandler streamHandler) private H2StreamcreateStream(H2StreamChannel channel, H2StreamHandler streamHandler) voiddropStreamId(int streamId) intintintintint(package private) booleanhasBeenSeen(int streamId) (package private) booleanbooleanisEmpty()booleanisOtherSide(int streamId) booleanisSameSide(int streamId) iterator()lookup(int streamId) lookupSeen(int streamId) lookupValid(int streamId) lookupValidOrNull(int streamId) voidresetIfExceedsMaxConcurrentLimit(H2Stream stream, int max) voidvoidshutdownAndReleaseAll(Exception cause)
-
Field Details
-
idGenerator
-
streamMap
-
streams
-
lastLocalId
-
lastRemoteId
-
localCount
-
remoteCount
-
-
Constructor Details
-
H2Streams
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
iterator
-
getLastLocalId
public int getLastLocalId() -
getLastRemoteId
public int getLastRemoteId() -
getLocalCount
public int getLocalCount() -
getRemoteCount
public int getRemoteCount() -
createStream
-
createActive
-
createReserved
-
resetIfExceedsMaxConcurrentLimit
- Throws:
IOException
-
dropStreamId
public void dropStreamId(int streamId) -
shutdownAndReleaseAll
-
shutdownAndReleaseAll
public void shutdownAndReleaseAll() -
lookup
-
hasBeenSeen
boolean hasBeenSeen(int streamId) -
isClosed
-
lookupValidOrNull
- Throws:
H2ConnectionException
-
lookupSeen
- Throws:
H2ConnectionException
-
lookupValid
- Throws:
H2ConnectionException
-
isSameSide
public boolean isSameSide(int streamId) -
isOtherSide
public boolean isOtherSide(int streamId) -
generateStreamId
public int generateStreamId()
-