Interface SocketOptionLingerOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SocketOptionLinger, SocketOptionLinger.Builder

public interface SocketOptionLingerOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    active maps to `struct linger.l_onoff`
    com.google.protobuf.Duration
    duration maps to `struct linger.l_linger`
    com.google.protobuf.DurationOrBuilder
    duration maps to `struct linger.l_linger`
    boolean
    duration maps to `struct linger.l_linger`

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getActive

      boolean getActive()
       active maps to `struct linger.l_onoff`
       
      bool active = 1;
      Returns:
      The active.
    • hasDuration

      boolean hasDuration()
       duration maps to `struct linger.l_linger`
       
      .google.protobuf.Duration duration = 2;
      Returns:
      Whether the duration field is set.
    • getDuration

      com.google.protobuf.Duration getDuration()
       duration maps to `struct linger.l_linger`
       
      .google.protobuf.Duration duration = 2;
      Returns:
      The duration.
    • getDurationOrBuilder

      com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       duration maps to `struct linger.l_linger`
       
      .google.protobuf.Duration duration = 2;