Interface SerializableOnlyOverRemoting

    • Method Detail

      • getChannelForSerialization

        @NonNull
        @Restricted(org.kohsuke.accmod.restrictions.ProtectedExternally.class)
        default Channel getChannelForSerialization()
                                            throws NotSerializableException
        Gets current channel or fails with NotSerializableException. This method is designed for serialization/deserialization methods in the channel.
        Returns:
        Current channel
        Throws:
        NotSerializableException - the calling thread has no associated channel. In such case the object cannot be serialized.