Queue/Stomp/Client/ConnectionInterface.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    Zend Framework
    LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
    Category
    Zend  
    Copyright
    Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
    License
    New BSD License  
    Package
    Zend_Queue  
    Subpackage
    Stomp  
    Version
    $Id$  

    \Zend_Queue_Stomp_Client_ConnectionInterface

    Package: Zend_Queue\Stomp
    The Stomp client interacts with a Stomp server.
    Category
    Zend  
    Copyright
    Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
    License
    New BSD License  

    Methods

    methodpubliccanRead() : void

    tests the socket to see if there is data for us

    methodpublicclose(boolean $destructor = false) : void

    Parameters
    NameTypeDescription
    $destructorboolean
    methodpubliccreateFrame() : \Zend_Queue_Stomp_FrameInterface

    create an empty frame

    Returns
    TypeDescription
    \Zend_Queue_Stomp_FrameInterfaceclass
    methodpublicgetFrameClass() : string

    Get the frameClass

    Returns
    TypeDescription
    string
    methodpublicopen(string $scheme,  $host,  $port) : boolean

    Parameters
    NameTypeDescription
    $schemestring

    ['tcp', 'udp']

    $host
    $port
    Returns
    TypeDescription
    boolean
    methodpublicping() : true

    Check whether we are connected to the server

    Returns
    TypeDescription
    true
    Throws
    ExceptionDescription
    \Zend_Queue_Exception
    methodpublicread() : \Zend_Queue_Stomp_Frame | false

    reads in a frame from the socket or returns false.

    Returns
    TypeDescription
    \Zend_Queue_Stomp_Frame | false
    Throws
    ExceptionDescription
    \Zend_Queue_Exception
    methodpublicsetFrameClass(string $class) : \Zend_Queue_Stomp_Client_ConnectionInterface;

    Set the frame class to be used

    This must be a Zend_Queue_Stomp_FrameInterface.
    Parameters
    NameTypeDescription
    $classstring
    Returns
    TypeDescription
    \Zend_Queue_Stomp_Client_ConnectionInterface;
    methodpublicwrite(\Zend_Queue_Stomp_FrameInterface $frame) : \Zend_Queue_Stomp_Client_ConnectionInterface

    write a frame to the stomp server

    example: $response = $client->write($frame)->read();
    Parameters
    NameTypeDescription
    $frame\Zend_Queue_Stomp_FrameInterface
    Returns
    TypeDescription
    \Zend_Queue_Stomp_Client_ConnectionInterface
    Details
    Fluent
    This method is part of a fluent interface and will return the same instance  
    Documentation was generated by phpDocumentor 2.2.0 .