Toggle navigation
Home
java.time.LocalDateTime to java.time.temporal.Temporal
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'infinispan'}
Hierarchy/Composition: R_SUPER_T
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Rename Variable
startTime
to
when
startTime
to
when
startTime
to
when
startTime
to
when
startTime
to
when
Cascading Type Change (Similar)
LocalDateTime
to
Temporal
Add or Remove Method invocation
promise.addListener(f -> { long ms; if (startTime == null) { ms=-1; } else { ms=ChronoUnit.MILLIS.between(startTime,LocalDateTime.now()); } log.tracef("%s [%s] \"%s %s\" \"%s\" %s %d %d %d ms",remoteAddress,checkForNull(startTime),checkForNull(op),checkForNull(cacheName),status,checkForNull(key),bytesRead,bytesWritten,ms); } )
to
promise.addListener(f -> { long duration; if (startTime == null) { duration=-1; } else { duration=ChronoUnit.MILLIS.between(startTime,ZonedDateTime.now()); } MDC.clear(); MDC.put("address",remoteAddress); MDC.put("user",checkForNull(who)); MDC.put("method",checkForNull(op)); MDC.put("protocol",checkForNull(version)); MDC.put("status",checkForNull(status)); MDC.put("responseSize",responseSize); MDC.put("requestSize",requestSize); MDC.put("duration",duration); log.tracef("/%s/%s",checkForNull(cacheName),checkForNull(key)); } )