def serviceCommand(methodName, cmdClass=ServiceWrapperCommand):
    def wrapper(obj, journal, *args, **kwargs):
        return journal.executeCommand(cmdClass(methodName, args, kwargs))
    return wrapper
Wrap methods into commands for a journalled service.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/persisted/journal/base.py/serviceCommand