/** * @exclude * Constructs a new FlexClient instance. * * @param manager The FlexClientManager managing this instance. */ public FlexClient(FlexClientManager manager) { this(manager, UUIDUtils.createUUID()); }
/** * * Use the createUUID function when you need a unique string that you will * use as a persistent identifier in a distributed environment. To a very * high degree of certainty, this function returns a unique value; no other * invocation on the same or any other system should return the same value. * * @return a Universally Unique Identifier (UUID) * Proper Format: `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' * where `X' stands for a hexadecimal digit (0-9 or A-F). */ public static String createUUID() { return createUUID(false); }
/** * * Use the createUUID function when you need a unique string that you will * use as a persistent identifier in a distributed environment. To a very * high degree of certainty, this function returns a unique value; no other * invocation on the same or any other system should return the same value. * * @return a Universally Unique Identifier (UUID) * Proper Format: `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' * where `X' stands for a hexadecimal digit (0-9 or A-F). */ public static String createUUID() { return createUUID(false); }
/** * * Use the createUUID function when you need a unique string that you will * use as a persistent identifier in a distributed environment. To a very * high degree of certainty, this function returns a unique value; no other * invocation on the same or any other system should return the same value. * * @return a Universally Unique Identifier (UUID) * Proper Format: `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' * where `X' stands for a hexadecimal digit (0-9 or A-F). * @author <a href="mailto:mnimer@macromedia.com">Mike Nimer</a> * @author <a href="mailto:pfriedman@macromedia.com">Paul Friedman</a> */ public static String createUUID() { return createUUID(true); }
/** * Constructs a <code>CommandMessage</code> instance. * The message id is set to a universally unique value, and the * timestamp for the message is set to the current system timestamp. * The operation is set to a default value of <code>UNKNOWN_OPERATION</code>. */ public CommandMessage() { this.messageId = UUIDUtils.createUUID(); this.timestamp = System.currentTimeMillis(); }
/** * Default constructor. */ public AcknowledgeMessage() { this.messageId = UUIDUtils.createUUID(false); this.timestamp = System.currentTimeMillis(); }
/** * Constructs a <code>CommandMessage</code> instance. * The message id is set to a universally unique value, and the * timestamp for the message is set to the current system timestamp. * The operation is set to a default value of <code>UNKNOWN_OPERATION</code>. */ public CommandMessage() { this.messageId = UUIDUtils.createUUID(); this.timestamp = System.currentTimeMillis(); }
/** * Constructs a <code>CommandMessage</code> instance. * The message id is set to a universally unique value, and the * timestamp for the message is set to the current system timestamp. * The operation is set to a default value of <code>UNKNOWN_OPERATION</code>. */ public CommandMessage() { this.messageId = UUIDUtils.createUUID(); this.timestamp = System.currentTimeMillis(); }
/** * Default constructor. */ public AcknowledgeMessage() { this.messageId = UUIDUtils.createUUID(false); this.timestamp = System.currentTimeMillis(); }
public AcknowledgeMessage() { this.messageId = UUIDUtils.createUUID(false); this.timestamp = System.currentTimeMillis(); }
/** * Default constructor. */ public AbstractTarget() { id = UUIDUtils.createUUID(); level = LogEvent.ERROR; filters = new ArrayList(); filters.add("*"); usingDefaultFilter = true; }
/** * Default constructor. */ public AbstractTarget() { id = UUIDUtils.createUUID(); level = LogEvent.ERROR; filters = new ArrayList(); filters.add("*"); usingDefaultFilter = true; }
/** * Default constructor. */ public AbstractTarget() { id = UUIDUtils.createUUID(); level = LogEvent.ERROR; filters = new ArrayList(); filters.add("*"); usingDefaultFilter = true; }
/** * Returns a UUID either from the UUID generator assigned to <tt>MessageBroker</tt>, * or from the <tt>UUIDUtils#createUUID</tt> if there is no assigned UUID generator. * * @return String the UUID. */ public String createUUID() { return uuidGenerator != null? uuidGenerator.createUUID() : UUIDUtils.createUUID(); }
/** * Returns a UUID either from the UUID generator assigned to <tt>MessageBroker</tt>, * or from the <tt>UUIDUtils#createUUID</tt> if there is no assigned UUID generator. * * @return String the UUID. */ public String createUUID() { return uuidGenerator != null? uuidGenerator.createUUID() : UUIDUtils.createUUID(); }
/** * Constructor * <p> * Creates a UUID for this object. Format: `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' * </p> * * @param r The RowSet to be paged. * @param p The initial page size. */ public PagedRowSet(RowSet r, int p) { serviceName = DEFAULT_PAGING_SERVICE_NAME; rowSet = r; pageSize = p; id = UUIDUtils.createUUID(); init(); }
/** * Allows the unique id generation of the RowSet to be toggled. * * @see #PagedRowSet(RowSet, int) */ public PagedRowSet(RowSet r, int p, boolean createID) { serviceName = DEFAULT_PAGING_SERVICE_NAME; rowSet = r; pageSize = p; if (createID) { id = UUIDUtils.createUUID(); } init(); }
/** * Constructor * <p> * Creates a UUID for this object. Format: `XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX' * </p> * * @param r The RowSet to be paged. * @param p The initial page size. */ public PagedRowSet(RowSet r, int p) { serviceName = DEFAULT_PAGING_SERVICE_NAME; rowSet = r; pageSize = p; id = UUIDUtils.createUUID(); init(); }
public AsyncMessage createMessage() { AsyncMessage message = new AsyncMessage(); message.setClientId(MessageTemplate.this.clientId); message.setMessageId(UUIDUtils.createUUID()); message.setTimestamp(System.currentTimeMillis()); return message; } }
/** * Constructs a PushNotifier instance. * * @param endpoint The endpoint that will use this notifier. * @param flexClient The FlexClient that will use this notifier. */ public EndpointPushNotifier(Endpoint endpoint, FlexClient flexClient) { notifierId = UUIDUtils.createUUID(false /* doesn't need to be secure */); this.endpoint = endpoint; this.flexClient = flexClient; flexClient.registerEndpointPushHandler(this, endpoint.getId()); flexSession = FlexContext.getFlexSession(); if (flexSession != null) flexSession.addSessionDestroyedListener(this); updateLastUse(); // Initialize last use timestamp to construct time. }