C# 클래스 MemcachedClientLibrary.SocketPool

파일 보기 프로젝트 열기: noear/Weed3 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Host string

비공개 메소드들

메소드 설명
Acquire ( ) : PooledSocket

Gets a socket from the pool. If there are no free sockets, a new one will be created. If something goes wrong while creating the new socket, this pool's endpoint will be marked as dead and all subsequent calls to this method will return null until the retry interval has passed.

Return ( PooledSocket socket ) : void

Returns a socket to the pool. If the socket is dead, it will be destroyed. If there are more than MaxPoolSize sockets in the pool, it will be destroyed. If there are less than MinPoolSize sockets in the pool, it will always be put back. If there are something inbetween those values, the age of the socket is checked. If it is older than the SocketRrecycleAge, it is destroyed, otherwise it will be put back in the pool.

SocketPool ( ServerPool owner, string host ) : System
getEndPoint ( string host ) : IPEndPoint

This method parses the given string into an IPEndPoint. If the string is malformed in some way, or if the host cannot be resolved, this method will throw an exception.

프로퍼티 상세

Host 공개적으로 프로퍼티

public string Host
리턴 string