Class ServiceInfoSnapshot

  • All Implemented Interfaces:
    de.dytanic.cloudnet.common.document.gson.IJsonDocPropertyable, de.dytanic.cloudnet.common.INameable, java.lang.Comparable<ServiceInfoSnapshot>

    public class ServiceInfoSnapshot
    extends de.dytanic.cloudnet.common.document.gson.BasicJsonDocPropertyable
    implements de.dytanic.cloudnet.common.INameable, java.lang.Comparable<ServiceInfoSnapshot>
    • Field Detail

      • TYPE

        public static final java.lang.reflect.Type TYPE
      • creationTime

        protected long creationTime
      • connectedTime

        protected long connectedTime
    • Method Detail

      • getCreationTime

        public long getCreationTime()
      • getServiceId

        public ServiceId getServiceId()
      • isConnected

        public boolean isConnected()
      • getConnectedTime

        public long getConnectedTime()
      • setConnectedTime

        public void setConnectedTime​(long connectedTime)
      • setProcessSnapshot

        public void setProcessSnapshot​(ProcessSnapshot processSnapshot)
      • getProperty

        @NotNull
        public <T> @NotNull java.util.Optional<T> getProperty​(@NotNull
                                                              @NotNull ServiceProperty<T> property)
      • setProperty

        public <T> void setProperty​(@NotNull
                                    @NotNull ServiceProperty<T> property,
                                    @Nullable
                                    T value)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface de.dytanic.cloudnet.common.INameable