C# Класс MemcachedClientLibrary.SocketPool

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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