org.jivesoftware.openfire.spi
Class BasicStreamIDFactory
java.lang.Object
org.jivesoftware.openfire.spi.BasicStreamIDFactory
- All Implemented Interfaces:
- StreamIDFactory
public class BasicStreamIDFactory
- extends Object
- implements StreamIDFactory
A basic stream ID factory that produces id's using java.util.Random
and a simple hex representation of a random int.
- Author:
- Iain Shigeoka
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicStreamIDFactory
public BasicStreamIDFactory()
createStreamID
public StreamID createStreamID()
- Description copied from interface:
StreamIDFactory
- Generate a stream id.
- Specified by:
createStreamID
in interface StreamIDFactory
- Returns:
- A new, unique stream id
createStreamID
public StreamID createStreamID(String name)
Copyright © 2003-2007 Jive Software.