Interface IInstanceConnectionDelegate
- All Superinterfaces:
AutoCloseable
,IConnection
,IInstanceConnection
,Invalidatable
,UncaughtExceptionsGenerator
- All Known Implementing Classes:
InstanceConnectionDelegateImpl
Represents an instance to which inter-process communication mechanism's separate process side delegates requests
to instance, received from the host. Because this interface's methods do not send or receive data,
overriden methods do not throw
IOException
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
invokeMethod
(String methodName, Class<?>[] parameterTypes, Object[] parameters) Invokes method with given name and parameters types on instance with given parameters and returns it's result.default boolean
isValid()
Returns if this instance is not closed.default void
Methods inherited from interface com._1c.g5.v8.dt.internal.pm.connection.IInstanceConnection
dispose
-
Method Details
-
setUncaughtExceptionHandler
SetsThread.UncaughtExceptionHandler
. Always throwsUnsupportedOperationException
.- Specified by:
setUncaughtExceptionHandler
in interfaceUncaughtExceptionsGenerator
- Parameters:
handler
- givenThread.UncaughtExceptionHandler
(notnull
)
-
isValid
default boolean isValid()Description copied from interface:Invalidatable
Returns if this instance is not closed.- Specified by:
isValid
in interfaceInvalidatable
- Returns:
true
, ifAutoCloseable.close()
was not called,false
otherwise
-
close
default void close()Description copied from interface:IConnection
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceIConnection
-
invokeMethod
Object invokeMethod(String methodName, Class<?>[] parameterTypes, Object[] parameters) throws ReflectiveOperationException Description copied from interface:IInstanceConnection
Invokes method with given name and parameters types on instance with given parameters and returns it's result.- Specified by:
invokeMethod
in interfaceIInstanceConnection
- Parameters:
methodName
- given method name (notnull
)parameterTypes
- given parameter types (notnull
)parameters
- given parameters (notnull
)- Returns:
- invocation result (may be
null
) - Throws:
ReflectiveOperationException
- if metod execution fails due to reflective error
-