org.jboss.jms.server.endpoint
Class ServerBrowserEndpoint

java.lang.Object
  extended by org.jboss.jms.server.endpoint.ServerBrowserEndpoint
All Implemented Interfaces:
Closeable, BrowserEndpoint

public class ServerBrowserEndpoint
extends java.lang.Object
implements BrowserEndpoint

Concrete implementation of BrowserEndpoint.

Version:
$Revision: 3174 $ $Id: ServerBrowserEndpoint.java 3174 2007-10-05 15:14:57Z timfox $
Author:
Tim Fox, Ovidiu Feodorov

Method Summary
 void close()
          Close the instance
 long closing(long sequence)
          Tell the instance to prepare to close
 boolean hasNextMessage()
           
 JBossMessage nextMessage()
           
 JBossMessage[] nextMessageBlock(int maxMessages)
           
 void reset()
          Reset the internal state of the browser endpoint so the following nextMessage()/hasNextMessage()/nextMessageBlock() invocations would reflect the state of the queue at the moment of the reset.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

reset

public void reset()
           throws JMSException
Description copied from interface: BrowserEndpoint
Reset the internal state of the browser endpoint so the following nextMessage()/hasNextMessage()/nextMessageBlock() invocations would reflect the state of the queue at the moment of the reset.

Specified by:
reset in interface BrowserEndpoint
Throws:
JMSException

hasNextMessage

public boolean hasNextMessage()
                       throws JMSException
Specified by:
hasNextMessage in interface BrowserEndpoint
Throws:
JMSException

nextMessage

public JBossMessage nextMessage()
                         throws JMSException
Specified by:
nextMessage in interface BrowserEndpoint
Throws:
JMSException

nextMessageBlock

public JBossMessage[] nextMessageBlock(int maxMessages)
                                throws JMSException
Specified by:
nextMessageBlock in interface BrowserEndpoint
Throws:
JMSException

close

public void close()
           throws JMSException
Description copied from interface: Closeable
Close the instance

Specified by:
close in interface Closeable
Throws:
JMSException

closing

public long closing(long sequence)
             throws JMSException
Description copied from interface: Closeable
Tell the instance to prepare to close

Specified by:
closing in interface Closeable
Throws:
JMSException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.