C# 클래스 NetMQ.Core.ZObject

This is the base-class for all objects that participate in inter-thread communication.
파일 보기 프로젝트 열기: NetMQ/NetMQ3-x 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ChooseIOThread NetMQ.Core.IOThread
FindEndpoint Ctx.Endpoint
SendCommand void

공개 메소드들

메소드 설명
ProcessCommand ( [ cmd ) : void

보호된 메소드들

메소드 설명
DestroySocket ( [ socket ) : void
ProcessActivateRead ( ) : void
ProcessActivateWrite ( long msgsRead ) : void
ProcessAttach ( [ engine ) : void
ProcessBind ( [ pipe ) : void

Process the bind command with the given pipe.

ProcessForceStop ( ) : void
ProcessHiccup ( [ pipe ) : void

This method would be called to assign the specified pipe as a replacement for the outbound pipe that was being used. This, is an abstract method that is to be overridden by subclasses to provide their own concrete implementation.

A "Hiccup" occurs when an outbound pipe experiences something like a transient disconnect or for whatever other reason is no longer available for writing to.

ProcessOwn ( [ obj ) : void
ProcessPipeTerm ( ) : void

Process the terminate-pipe command.

ProcessPipeTermAck ( ) : void

Process the terminate-pipe acknowledgement command.

ProcessPlug ( ) : void
ProcessReap ( [ socket ) : void
ProcessReaped ( ) : void
ProcessSeqnum ( ) : void

Special handler called after a command that requires a seqnum was processed. The implementation should catch up with its counter of processed commands here.

ProcessStop ( ) : void
ProcessTerm ( int linger ) : void

Process a termination request.

ProcessTermAck ( ) : void

Process the termination-acknowledgement command.

ProcessTermReq ( [ obj ) : void

Process a termination-request command on the Own object.

RegisterEndpoint ( [ addr, [ endpoint ) : bool
SendActivateRead ( [ destination ) : void
SendActivateWrite ( [ destination, long msgsRead ) : void
SendAttach ( [ destination, [ engine, bool incSeqnum = true ) : void

Send the Attach command

SendBind ( [ destination, [ pipe, bool incSeqnum = true ) : void

Send the Bind command

SendDone ( ) : void

Send a Done command to the Ctx itself (null destination).

SendForceStop ( ) : void
SendHiccup ( [ destination, [ pipe ) : void
SendOwn ( [ destination, [ obj ) : void

Send the Own command, and increment the sequence-number of the destination

SendPipeTerm ( [ destination ) : void
SendPipeTermAck ( [ destination ) : void
SendPlug ( [ destination, bool incSeqnum = true ) : void

Send the Plug command, incrementing the destinations sequence-number if incSeqnum is true.

SendReap ( [ socket ) : void
SendReaped ( ) : void
SendStop ( ) : void

Send the Stop command.

SendTerm ( [ destination, int linger ) : void
SendTermAck ( [ destination ) : void
SendTermReq ( [ destination, [ obj ) : void

For owned objects, asks the owner (destination) to terminate obj.

UnregisterEndpoint ( [ addr, [ socket ) : bool
UnregisterEndpoints ( [ socket ) : void
ZObject ( [ parent ) : System

Create a new ZObject that has the same context and thread-id as the given parent-ZObject.

ZObject ( [ ctx, int threadId ) : System

Create a new ZObject with the given context and thread-id.

비공개 메소드들

메소드 설명
ChooseIOThread ( long affinity ) : NetMQ.Core.IOThread
FindEndpoint ( [ addr ) : Ctx.Endpoint
SendCommand ( [ cmd ) : void

Send the given Command, on that commands Destination thread.

메소드 상세

DestroySocket() 보호된 메소드

protected DestroySocket ( [ socket ) : void
socket [
리턴 void

ProcessActivateRead() 보호된 메소드

Not supported on the ZObject class.
protected ProcessActivateRead ( ) : void
리턴 void

ProcessActivateWrite() 보호된 메소드

Not supported on the ZObject class.
protected ProcessActivateWrite ( long msgsRead ) : void
msgsRead long
리턴 void

ProcessAttach() 보호된 메소드

Not supported on the ZObject class.
protected ProcessAttach ( [ engine ) : void
engine [
리턴 void

ProcessBind() 보호된 메소드

Process the bind command with the given pipe.
Not supported on the ZObject class.
protected ProcessBind ( [ pipe ) : void
pipe [
리턴 void

ProcessCommand() 공개 메소드

public ProcessCommand ( [ cmd ) : void
cmd [
리턴 void

ProcessForceStop() 보호된 메소드

Not supported on the ZObject class.
protected ProcessForceStop ( ) : void
리턴 void

ProcessHiccup() 보호된 메소드

This method would be called to assign the specified pipe as a replacement for the outbound pipe that was being used. This, is an abstract method that is to be overridden by subclasses to provide their own concrete implementation.
A "Hiccup" occurs when an outbound pipe experiences something like a transient disconnect or for whatever other reason is no longer available for writing to.
No supported on the ZObject class.
protected ProcessHiccup ( [ pipe ) : void
pipe [ the pipe to use for writing
리턴 void

ProcessOwn() 보호된 메소드

Not supported on the ZObject class.
protected ProcessOwn ( [ obj ) : void
obj [
리턴 void

ProcessPipeTerm() 보호된 메소드

Process the terminate-pipe command.
Not supported on the ZObject class.
protected ProcessPipeTerm ( ) : void
리턴 void

ProcessPipeTermAck() 보호된 메소드

Process the terminate-pipe acknowledgement command.
Not supported on the ZObject class.
protected ProcessPipeTermAck ( ) : void
리턴 void

ProcessPlug() 보호된 메소드

Not supported on the ZObject class.
protected ProcessPlug ( ) : void
리턴 void

ProcessReap() 보호된 메소드

protected ProcessReap ( [ socket ) : void
socket [
리턴 void

ProcessReaped() 보호된 메소드

Not supported on the ZObject class.
protected ProcessReaped ( ) : void
리턴 void

ProcessSeqnum() 보호된 메소드

Special handler called after a command that requires a seqnum was processed. The implementation should catch up with its counter of processed commands here.
Not supported on the ZObject class.
protected ProcessSeqnum ( ) : void
리턴 void

ProcessStop() 보호된 메소드

Not supported on the ZObject class.
protected ProcessStop ( ) : void
리턴 void

ProcessTerm() 보호된 메소드

Process a termination request.
Not supported on the ZObject class.
protected ProcessTerm ( int linger ) : void
linger int a time (in milliseconds) for this to linger before actually going away. -1 means infinite.
리턴 void

ProcessTermAck() 보호된 메소드

Process the termination-acknowledgement command.
Not supported on the ZObject class.
protected ProcessTermAck ( ) : void
리턴 void

ProcessTermReq() 보호된 메소드

Process a termination-request command on the Own object.
Not supported on the ZObject class.
protected ProcessTermReq ( [ obj ) : void
obj [
리턴 void

RegisterEndpoint() 보호된 메소드

protected RegisterEndpoint ( [ addr, [ endpoint ) : bool
addr [
endpoint [
리턴 bool

SendActivateRead() 보호된 메소드

protected SendActivateRead ( [ destination ) : void
destination [
리턴 void

SendActivateWrite() 보호된 메소드

protected SendActivateWrite ( [ destination, long msgsRead ) : void
destination [
msgsRead long
리턴 void

SendAttach() 보호된 메소드

Send the Attach command
protected SendAttach ( [ destination, [ engine, bool incSeqnum = true ) : void
destination [ the Own to send the command to
engine [
incSeqnum bool
리턴 void

SendBind() 보호된 메소드

Send the Bind command
protected SendBind ( [ destination, [ pipe, bool incSeqnum = true ) : void
destination [
pipe [
incSeqnum bool
리턴 void

SendDone() 보호된 메소드

Send a Done command to the Ctx itself (null destination).
protected SendDone ( ) : void
리턴 void

SendForceStop() 보호된 메소드

protected SendForceStop ( ) : void
리턴 void

SendHiccup() 보호된 메소드

protected SendHiccup ( [ destination, [ pipe ) : void
destination [
pipe [
리턴 void

SendOwn() 보호된 메소드

Send the Own command, and increment the sequence-number of the destination
protected SendOwn ( [ destination, [ obj ) : void
destination [ the Own to send the command to
obj [ the object to Own
리턴 void

SendPipeTerm() 보호된 메소드

protected SendPipeTerm ( [ destination ) : void
destination [
리턴 void

SendPipeTermAck() 보호된 메소드

protected SendPipeTermAck ( [ destination ) : void
destination [
리턴 void

SendPlug() 보호된 메소드

Send the Plug command, incrementing the destinations sequence-number if incSeqnum is true.
protected SendPlug ( [ destination, bool incSeqnum = true ) : void
destination [ the Own to send the command to
incSeqnum bool a flag that dictates whether to increment the sequence-number on the destination (optional - defaults to false)
리턴 void

SendReap() 보호된 메소드

protected SendReap ( [ socket ) : void
socket [
리턴 void

SendReaped() 보호된 메소드

protected SendReaped ( ) : void
리턴 void

SendStop() 보호된 메소드

Send the Stop command.
protected SendStop ( ) : void
리턴 void

SendTerm() 보호된 메소드

protected SendTerm ( [ destination, int linger ) : void
destination [
linger int
리턴 void

SendTermAck() 보호된 메소드

protected SendTermAck ( [ destination ) : void
destination [
리턴 void

SendTermReq() 보호된 메소드

For owned objects, asks the owner (destination) to terminate obj.
protected SendTermReq ( [ destination, [ obj ) : void
destination [
obj [
리턴 void

UnregisterEndpoint() 보호된 메소드

protected UnregisterEndpoint ( [ addr, [ socket ) : bool
addr [
socket [
리턴 bool

UnregisterEndpoints() 보호된 메소드

protected UnregisterEndpoints ( [ socket ) : void
socket [
리턴 void

ZObject() 보호된 메소드

Create a new ZObject that has the same context and thread-id as the given parent-ZObject.
protected ZObject ( [ parent ) : System
parent [ another ZObject that provides the context and thread-id for this one
리턴 System

ZObject() 보호된 메소드

Create a new ZObject with the given context and thread-id.
protected ZObject ( [ ctx, int threadId ) : System
ctx [ the context for the new ZObject to live within
threadId int the integer thread-id for the new ZObject to be associated with
리턴 System