org.subethamail.smtp.server
Class TimeBasedSessionIdFactory

java.lang.Object
  extended by org.subethamail.smtp.server.TimeBasedSessionIdFactory
All Implemented Interfaces:
SessionIdFactory

@ThreadSafe
public class TimeBasedSessionIdFactory
extends Object
implements SessionIdFactory

TimeBasedSessionIdFactory is a very simple SessionIdFactory, which assigns numeric identifiers based on the current milliseconds time, amending it as necessary to make it unique.


Constructor Summary
TimeBasedSessionIdFactory()
           
 
Method Summary
 String create()
          Returns a new identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBasedSessionIdFactory

public TimeBasedSessionIdFactory()
Method Detail

create

public String create()
Description copied from interface: SessionIdFactory
Returns a new identifier.

Specified by:
create in interface SessionIdFactory


Copyright © 2006-2012. All Rights Reserved.