Package smartrics.iotics.space.grpc
Record Class TokenInjectorClientInterceptor
java.lang.Object
java.lang.Record
smartrics.iotics.space.grpc.TokenInjectorClientInterceptor
- All Implemented Interfaces:
io.grpc.ClientInterceptor
public record TokenInjectorClientInterceptor(TokenScheduler scheduler)
extends Record
implements io.grpc.ClientInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionTokenInjectorClientInterceptor(TokenScheduler scheduler) Creates an instance of aTokenInjectorClientInterceptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<ReqT,RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) Returns the value of theschedulerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TokenInjectorClientInterceptor
Creates an instance of aTokenInjectorClientInterceptorrecord class.- Parameters:
scheduler- the value for theschedulerrecord component
-
-
Method Details
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) - Specified by:
interceptCallin interfaceio.grpc.ClientInterceptor
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
scheduler
Returns the value of theschedulerrecord component.- Returns:
- the value of the
schedulerrecord component
-