Class TransportIdentity

java.lang.Object
com.soklet.TransportIdentity

@ThreadSafe public final class TransportIdentity extends Object
Stable, opaque reference identity for one complete transport lifecycle graph. Independent engines retain one token; decorators return their delegate's exact token unchanged. Soklet permanently claims the token for the lifecycle that first accepts its configuration, so a token must not be reused for a distinct transport graph or lifecycle generation.
Author:
Mark Allen
  • Method Details

    • create

      @CheckReturnValue public static @NonNull TransportIdentity create()
      Creates a fresh reference-identity token distinct from every token previously returned. Identity tokens intentionally do not have structural equality or hash-code semantics.
      Returns:
      a fresh transport identity