Package com.netflix.zuul.passport
Class CurrentPassport
java.lang.Object
com.netflix.zuul.passport.CurrentPassport
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(PassportState state) void
addIfNotAlready
(PassportState state) long
long
long
calculateTimeBetweenFirstAnd
(PassportState endState) static void
clearFromChannel
(io.netty.channel.Channel ch) static CurrentPassport
create()
static CurrentPassport
createForChannel
(io.netty.channel.Channel ch) long
findEachPairOf
(PassportState startState, PassportState endState) findFirstStartAndLastEndStates
(PassportState startState, PassportState endState) findLastStartAndFirstEndStates
(PassportState startState, PassportState endState) findStartAndEndStates
(PassportState startState, PassportState endState) findState
(PassportState state) findStateBackwards
(PassportState state) findStates
(PassportState state) findTimes
(PassportState state) long
NOTE: This is NOT nanos since epoch.static CurrentPassport
fromChannel
(io.netty.channel.Channel ch) static CurrentPassport
fromChannelOrNull
(io.netty.channel.Channel ch) static CurrentPassport
getState()
static CurrentPassport
parseFromToString
(String text) void
setOnChannel
(io.netty.channel.Channel ch) toString()
boolean
-
Field Details
-
CHANNEL_ATTR
-
-
Constructor Details
-
CurrentPassport
public CurrentPassport(com.google.common.base.Ticker ticker)
-
-
Method Details
-
create
-
fromSessionContext
-
createForChannel
-
fromChannel
-
fromChannelOrNull
-
setOnChannel
public void setOnChannel(io.netty.channel.Channel ch) -
clearFromChannel
public static void clearFromChannel(io.netty.channel.Channel ch) -
getState
-
getHistory
-
add
-
addIfNotAlready
-
calculateTimeBetweenFirstAnd
-
firstTime
public long firstTime()NOTE: This is NOT nanos since epoch. It's just since an arbitrary point in time. So only use relatively. -
creationTimeSinceEpochMs
public long creationTimeSinceEpochMs() -
calculateTimeBetween
-
calculateTimeBetweenButIfNoEndThenUseNow
-
findStartAndEndStates
-
findFirstStartAndLastEndStates
-
findLastStartAndFirstEndStates
-
findEachPairOf
-
findState
-
findStateBackwards
-
findStates
-
findTimes
-
wasProxyAttempt
public boolean wasProxyAttempt() -
toString
-
parseFromToString
-