@ManagedResource public class RTMPMinaConnection extends RTMPConnection implements RTMPMinaConnectionMXBean
IConnection.Duty, IConnection.Encoding, IConnection.Type| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bandwidthDetection |
protected int |
defaultClientBandwidth |
protected int |
defaultServerBandwidth |
protected static org.slf4j.Logger |
log |
bytesReadInterval, deadlockGuardScheduler, decoderLock, decoderState, encoderLock, executor, handler, limitType, MAX_RESERVED_STREAMS, maxHandlingTimeout, maxInactivity, nextBytesRead, RTMP_CONN_MANAGER, RTMP_ENCRYPTED, RTMP_ENCRYPTED_BLOWFISH, RTMP_ENCRYPTED_UNK, RTMP_ENCRYPTED_XTEA, RTMP_HANDLER, RTMP_HANDSHAKE, RTMP_NON_ENCRYPTED, RTMP_SESSION_ID, RTMPE_CIPHER_IN, RTMPE_CIPHER_OUT, running, scheduler, statebasicScopes, client, connectionListeners, droppedMessages, duty, host, params, path, readMessages, remoteAddress, remoteAddresses, remotePort, scope, sessionId, type, writtenMessagesattributes| Constructor and Description |
|---|
RTMPMinaConnection()
Constructs a new RTMPMinaConnection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes connection
|
boolean |
connect(IScope newScope,
Object[] params)
Connect to another scope on server with given parameters
|
int |
getDefaultClientBandwidth() |
int |
getDefaultServerBandwidth() |
org.apache.mina.core.session.IoSession |
getIoSession()
Return MINA I/O session.
|
int |
getLimitType() |
long |
getPendingMessages()
Count of outgoing messages not yet written.
|
long |
getReadBytes()
Total number of bytes read from the connection.
|
long |
getWrittenBytes()
Total number of bytes written to the connection.
|
void |
invokeMethod(String method) |
boolean |
isBandwidthDetection() |
boolean |
isConnected()
Check whether connection is alive
|
boolean |
isIdle()
Returns whether or not the connection has been idle for a maximum period.
|
boolean |
isReaderIdle()
Returns whether or not the reader is idle.
|
boolean |
isWriterIdle()
Returns whether or not the writer is idle.
|
protected void |
onInactive()
Inactive state event handler.
|
protected void |
registerJMX() |
void |
setBandwidthDetection(boolean bandwidthDetection) |
void |
setDefaultClientBandwidth(int defaultClientBandwidth) |
void |
setDefaultServerBandwidth(int defaultServerBandwidth) |
void |
setExecutor(ThreadPoolTaskExecutor executor) |
void |
setIoSession(org.apache.mina.core.session.IoSession protocolSession)
Setter for MINA I/O session (connection).
|
void |
setLimitType(int limitType) |
protected void |
unregisterJMX() |
void |
write(Packet out)
Write packet.
|
void |
writeRaw(org.apache.mina.core.buffer.IoBuffer out)
Write raw byte buffer.
|
addClientStream, closeChannel, createOutputStream, createStreamName, currentQueueSize, deleteStreamById, dispatchEvent, getChannel, getChannelIdForStreamId, getChannelsConcurrencyLevel, getChannelsInitalCapacity, getClientBytesRead, getDeadlockGuardScheduler, getDecoderLock, getDecoderState, getEncoderLock, getEncoding, getExecutor, getHandler, getId, getLastPingSentAndLastPongReceivedInterval, getLastPingTime, getMaxHandlingTimeout, getNextAvailableChannelId, getPendingCall, getPendingCallsConcurrencyLevel, getPendingCallsInitalCapacity, getPendingVideoMessages, getProtocol, getReservedStreamsConcurrencyLevel, getReservedStreamsInitalCapacity, getScheduler, getState, getStateCode, getStreamByChannelId, getStreamById, getStreamIdForChannelId, getStreams, getStreamsConcurrencyLevel, getStreamsInitalCapacity, getStreamsMap, getTimer, getTransactionId, getUsedStreamCount, handleMessageReceived, invoke, invoke, invoke, invoke, invoke, invoke, isChannelUsed, isDisconnected, isValidStreamId, messageDropped, messageReceived, messageSent, messageTypeToName, newBroadcastStream, newPlaylistSubscriberStream, newSingleItemSubscriberStream, notify, notify, notify, notify, onTaskAdded, onTaskRemoved, open, ping, ping, pingReceived, receivedBytesRead, registerDeferredResult, registerPendingCall, rememberStreamBufferDuration, removeClientStream, reserveStreamId, reserveStreamId, retrievePendingCall, sendPendingServiceCallsCloseError, sendSharedObjectMessage, setBandwidth, setChannelsConcurrencyLevel, setChannelsInitalCapacity, setDeadlockGuardScheduler, setExecutorQueueSizeToDropAudioPackets, setHandler, setId, setMaxHandlingTimeout, setMaxHandshakeTimeout, setMaxInactivity, setPendingCallsConcurrencyLevel, setPendingCallsInitalCapacity, setPingInterval, setReservedStreamsConcurrencyLevel, setReservedStreamsInitalCapacity, setScheduler, setStateCode, setStreamsConcurrencyLevel, setStreamsInitalCapacity, setup, startWaitForHandshake, status, status, toString, unregisterDeferredResult, unreserveStreamId, updateBytesRead, writingMessageaddListener, connect, equals, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getDuty, getHost, getLock, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getStreamId, getType, getWrittenMessages, handleEvent, hashCode, initialize, isClosed, notifyEvent, registerBasicScope, registerBasicScope, removeListener, setClient, setDuty, setStreamId, unregisterBasicScopefilterNull, from, getAttribute, getAttribute, getAttributeNames, getAttributes, getBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttribute, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, sizeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDroppedMessages, getHost, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getSessionId, getType, getWrittenMessagesgetAttributeNames, hasAttribute, removeAttribute, removeAttributesaddListener, connect, getBasicScopes, getClient, getConnectParams, getDroppedMessages, getDuty, getHost, getPath, getReadMessages, getRemoteAddress, getRemoteAddresses, getRemotePort, getScope, getSessionId, getStreamId, getType, getWrittenMessages, initialize, removeListener, setClient, setStreamIdhandleEventnotifyEventgetBoolAttribute, getByteAttribute, getDoubleAttribute, getIntAttribute, getListAttribute, getLongAttribute, getMapAttribute, getSetAttribute, getShortAttribute, getStringAttributegetAttribute, getAttribute, getAttributeNames, getAttributes, hasAttribute, removeAttribute, removeAttributes, setAttribute, setAttributes, setAttributes, sizeprotected static org.slf4j.Logger log
protected int defaultServerBandwidth
protected int defaultClientBandwidth
protected boolean bandwidthDetection
@ConstructorProperties(value="persistent") public RTMPMinaConnection()
public boolean connect(IScope newScope, Object[] params)
BaseConnectionconnect in interface IConnectionconnect in class RTMPConnectionnewScope - New scopeparams - Parameters to connect withpublic void close()
close in interface IConnectionclose in interface RTMPConnectionMXBeanclose in class RTMPConnectionpublic org.apache.mina.core.session.IoSession getIoSession()
getIoSession in class RTMPConnectionpublic int getDefaultServerBandwidth()
public void setDefaultServerBandwidth(int defaultServerBandwidth)
defaultServerBandwidth - the defaultServerBandwidth to setpublic int getDefaultClientBandwidth()
public void setDefaultClientBandwidth(int defaultClientBandwidth)
defaultClientBandwidth - the defaultClientBandwidth to setpublic int getLimitType()
public void setLimitType(int limitType)
limitType - the limitType to setpublic void setExecutor(ThreadPoolTaskExecutor executor)
setExecutor in class RTMPConnectionpublic boolean isBandwidthDetection()
public void setBandwidthDetection(boolean bandwidthDetection)
bandwidthDetection - the bandwidthDetection to setpublic boolean isReaderIdle()
isReaderIdle in class BaseConnectionpublic boolean isWriterIdle()
isWriterIdle in class BaseConnectionpublic long getPendingMessages()
getPendingMessages in interface IConnectiongetPendingMessages in interface RTMPConnectionMXBeangetPendingMessages in class BaseConnectionpublic long getReadBytes()
getReadBytes in interface IConnectiongetReadBytes in interface RTMPConnectionMXBeangetReadBytes in class RTMPConnectionpublic long getWrittenBytes()
getWrittenBytes in interface IConnectiongetWrittenBytes in interface RTMPConnectionMXBeangetWrittenBytes in class RTMPConnectionpublic void invokeMethod(String method)
invokeMethod in interface RTMPMinaConnectionMXBeanpublic boolean isConnected()
isConnected in interface IConnectionisConnected in interface RTMPConnectionMXBeanisConnected in class BaseConnectionpublic boolean isIdle()
isIdle in class RTMPConnectionprotected void onInactive()
onInactive in class RTMPConnectionpublic void setIoSession(org.apache.mina.core.session.IoSession protocolSession)
protocolSession - Protocol sessionpublic void write(Packet out)
write in class RTMPConnectionout - Packetpublic void writeRaw(org.apache.mina.core.buffer.IoBuffer out)
writeRaw in class RTMPConnectionout - IoBufferprotected void registerJMX()
protected void unregisterJMX()
Copyright © 2005–2017 Red5. All rights reserved.